package cn.stylefeng.guns.modular.shuheng.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *level_id 和 content_id只可能有其中一个存在
 * 有的data直接挂在level下
 * @author zhengpp
 * @since 2021-03-07
 */
@TableName("job_data")
public class Data implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "data_id", type = IdType.ID_WORKER)
    private Long dataId;

    @TableField(value = "content_id",strategy = FieldStrategy.IGNORED)
    private Long contentId;

    @TableField(value = "level_id",strategy = FieldStrategy.IGNORED)
    private Long levelId;

    @TableField("region_type")
    private Integer regionType;

    /**
     * 提报资料名称
     */
    @TableField("data_name")
    private String dataName;

    /**
     * 年度
     */
    @TableField("data_year")
    private Integer dataYear;

    /**
     * 资料类型excel,word,img,pdf
     */
    @TableField("data_type")
    private String dataType;

    /**
     * 基础分值
     */
    @TableField("base_score")
    private BigDecimal baseScore;

    /**
     * 内容主观分值
     */
    @TableField("data_score")
    private BigDecimal dataScore;

    /**
     * 提报月份
     */
    @TableField("data_month")
    private Integer dataMonth;

    @TableField("sort")
    private Integer sort;

    @TableField("dept_id")
    private Long deptId;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public Integer getRegionType() {
        return regionType;
    }

    public void setRegionType(Integer regionType) {
        this.regionType = regionType;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getContentId() {
        return contentId;
    }

    public void setContentId(Long contentId) {
        this.contentId = contentId;
    }

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }
    public Integer getDataYear() {
        return dataYear;
    }

    public void setDataYear(Integer dataYear) {
        this.dataYear = dataYear;
    }
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Long getLevelId() {
        return levelId;
    }

    public void setLevelId(Long levelId) {
        this.levelId = levelId;
    }

    public BigDecimal getBaseScore() {
        return baseScore;
    }

    public void setBaseScore(BigDecimal baseScore) {
        this.baseScore = baseScore;
    }

    public BigDecimal getDataScore() {
        return dataScore;
    }

    public void setDataScore(BigDecimal dataScore) {
        this.dataScore = dataScore;
    }

    public Integer getDataMonth() {
        return dataMonth;
    }

    public void setDataMonth(Integer dataMonth) {
        this.dataMonth = dataMonth;
    }
    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Data{" +
        "dataId=" + dataId +
        ", dataName=" + dataName +
        ", dataYear=" + dataYear +
        ", dataType=" + dataType +
        ", baseScore=" + baseScore +
        ", dataScore=" + dataScore +
        ", dataMonth=" + dataMonth +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        "}";
    }
}
